package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by qyhl2 on 2017/12/6.
 */

public class ActivityListTempBean implements Parcelable {

    //活动状态 0 活动未开始  1 活动进行中  2 活动已结束
    private int actStatus;
    //投票状态 0 过期
    private int voteStatus;
    //报名状态 0 过期3
    private int applyStatus;
    //活动详情
    private ActivityBean activity;
    //图片
    private List<ActivityImageBean> images;
    /**
     * 投票规则
     */
    private ActVoteBean vote;

    public int getApplyStatus() {
        return applyStatus;
    }

    public ActVoteBean getVote() {
        return vote;
    }

    public void setVote(ActVoteBean vote) {
        this.vote = vote;
    }

    public void setApplyStatus(int applyStatus) {
        this.applyStatus = applyStatus;
    }

    public List<ActivityImageBean> getImages() {
        return images;
    }

    public void setImages(List<ActivityImageBean> images) {
        this.images = images;
    }

    public ActivityBean getActivity() {
        return activity;
    }

    public void setActivity(ActivityBean activity) {
        this.activity = activity;
    }

    public int getActStatus() {
        return actStatus;
    }

    public void setActStatus(int actStatus) {
        this.actStatus = actStatus;
    }

    public int getVoteStatus() {
        return voteStatus;
    }

    public void setVoteStatus(int voteStatus) {
        this.voteStatus = voteStatus;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.actStatus);
        dest.writeInt(this.voteStatus);
        dest.writeInt(this.applyStatus);
        dest.writeParcelable(this.activity, flags);
        dest.writeTypedList(this.images);
        dest.writeParcelable(this.vote, flags);
    }

    protected ActivityListTempBean(Parcel in) {
        this.actStatus = in.readInt();
        this.voteStatus = in.readInt();
        this.vote = in.readParcelable(ActVoteBean.class.getClassLoader());
        this.applyStatus = in.readInt();
        this.activity = in.readParcelable(ActivityBean.class.getClassLoader());
        this.images = in.createTypedArrayList(ActivityImageBean.CREATOR);
    }

    public static final Creator<ActivityListTempBean> CREATOR = new Creator<ActivityListTempBean>() {
        @Override
        public ActivityListTempBean createFromParcel(Parcel source) {
            return new ActivityListTempBean(source);
        }

        @Override
        public ActivityListTempBean[] newArray(int size) {
            return new ActivityListTempBean[size];
        }
    };
}
